// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })

    // wx.loadFontFace({
    //   family: 'DFPWaWa-B5',
    //   source: 'url("https://we7.stuyun.com/DFPWaWa-B5.ttf")',
    //   success: res => {
    //     console.log('font load success', res)
    //   },
    //   fail: err => {
    //     console.log('font load fail', err)
    //   }
    // })

  },
  globalData: {
    userInfo: null
  }
})
